package cn.anecansaitin.industrialization_expansion.api.common.event;

import net.minecraft.item.ItemUseContext;
import net.minecraft.util.ActionResultType;
import net.minecraftforge.eventbus.api.Event;

public class ToolUseOnBlockEvent extends Event {
    private final ItemUseContext context;
    private ActionResultType result = ActionResultType.PASS;

    public ToolUseOnBlockEvent(ItemUseContext context) {
        this.context = context;
    }

    public ItemUseContext getContext() {
        return context;
    }

    public void setResult(ActionResultType result) {
        this.result = result;
    }

    public ActionResultType getActionResult() {
        return result;
    }
}
